<template>
  <div class="ivu-box">
    <Breadcrumb>
      <BreadcrumbItem>返现管理</BreadcrumbItem>
      <BreadcrumbItem>选择返现方式</BreadcrumbItem>
    </Breadcrumb>
    <div class="form_box">
      <Form style="width: 850px;"  :label-width="100">
        <FormItem label="活动类型 : ">
          <RadioGroup value="first"  @on-change="fixed">
            <Radio label="first">比例返现</Radio>
            <Radio label="second">固定额</Radio>
          </RadioGroup>
        </FormItem>
        <FormItem>
          <Button type="primary"  @click="remove(row)" style="margin-right: 10px"
          >提交保存</Button
          >
        </FormItem>
      </Form>
    </div>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        current1:'first',
        current2: '0'
      }
    },
    methods: {
      autoMoney(current1) {
        this.current1=current1;
      },
      // 下拉框选择后"增满"字和"元天"字的变化
      setWords(current2,value) {
        this.current2=current2;
        current2=value;
      },
      remove(row) {
        this.selectID = [];
        this.selectID.push(row.id)

        this.$Modal.confirm({
          title: '确定要删除账号:“' +  row.username + '”吗？',
          onOk: () => {
            this.axios.post("account/delAccount",{id:this.selectID}).then(res => {
              if(res.code == 1){
                this.$Message.success("删除成功");
                this.lists();
              }
            })
          },
          onCancel: () => {}
        });
      }
    }

  }
</script>

<style scoped>

</style>
